package ModelLayer;

public class Product {
	
	private int id;
	private String title;
	private String type;
	private String description;
	private double price;	
	
	public Product()
	{
		
	}
	
	public Product(int id, String title, String type, String description, double price)
	{
		this.id = id;
		this.title = title;
		this.type = type;
		this.description = description;
		this.price = price;
	}
	
	public Product(int id)
	{
		this.id = id;
	}
	
	// set methods

	public void setId(int id)
	{
		this.id = id;
	}
	
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	public void setType(String type) 
	{
		this.type = type;
	}
	
	public void setDescription(String description)
	{
		this.description = description;
	}

	public void setPrice(double price)
	{
		this.price = price;
	}
	
	// get methods
	
	public int getId()
	{
		return id;
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public String getType() 
	{
		return type;
	}
	
	public String getDescription()
	{
		return description;
	}
	
	public double getPrice()
	{
		return price;
	}

	public String toString()
	{
		return title;
	}
}
